package edu.cuit.canary.selection;

import java.util.Scanner;

public class NestingIFDemo {
    public static void main(String[] args) {
        System.out.println("请输入本次测试成绩:");
        Scanner input = new Scanner(System.in);
        float score = input.nextFloat();
        input.close();

        if(score >= 90)
            System.out.println("A");
         else if(score >= 80)
            System.out.println("B");
         else if(score >= 70)
            System.out.println("C");
         else if(score >= 60)
            System.out.println("D");
         else
            System.out.println("E");

    }
}
